package com.ribbon;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @BelongsProject: springcloud
 * @BelongsPackage: com.ribbon
 * @Author: LiMengshuai
 * @CreateTime: 2019-07-24 11:15
 * @Description: ${Description}
 */
@Configuration
public class MyRule {
    @Bean
    public IRule mySelfRule() {
        //return new RandomRule();//随机算法
        //return new RoundRobinRule();轮询算法
        return new FiveRoundRule();
    }

}
